<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header", "default"); ?>
<?php include template("content","header_article", "default"); ?>
<!-- 头部end-->
<!-- 内容begin-->
<div id="shop">
  <div class="sch_sjzn_l">
  	<div class="sch_sjzn_l01">
		<div class="sch_sjzn_l01_title"><div class="title p14 strong" id="cat2"></div></div>
		
		<div class="sch_sjzn_l01_c">
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=9bbbe83637fabf83469f73a2ffd105b3&action=lists&catid=%24catid&limits=0%2C1&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 20;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'limits'=>'0,1','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>$catid,'limits'=>'0,1','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
		<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			<h1><a href="<?php echo $r['url'];?>" target="_blank"<?php echo title_style($r[style]);?>><?php echo $r['title'];?></a></h1>
			<span><?php echo $r['description'];?></span>	
		<?php $n++;}unset($n); ?>
		</div>
		<script>
	var str = $('#navcat').html();
	//var str = '<a href="http://assd.com">导行一</a><a href="http://assd.com">导行二</a>';
	var s = str.replace(/<a (.+?)>(.*?)<\/a> &gt;/ig,"$2,");
	var b =  s.split(',');
	$('#cat2').html(b[1]);
</script>
		<ul>
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=c613c0a7574972e585ce5c27df2909f6&action=lists&catid=%24catid&limits=1%2C5&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 20;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'limits'=>'1,5','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>$catid,'limits'=>'1,5','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
		<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			<li><a href="<?php echo $r['url'];?>" target="_blank"><?php echo $r['title'];?></a></li>
		<?php $n++;}unset($n); ?>
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		</ul>
		<ul>
			<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=2a67dae5dcd08b5415068f14b86680d5&action=lists&catid=%24catid&limits=6%2C10&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 20;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'limits'=>'6,10','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>$catid,'limits'=>'6,10','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
			<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
				<li><a href="<?php echo $r['url'];?>" target="_blank"><?php echo $r['title'];?></a></li>
			<?php $n++;}unset($n); ?>
			<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		</ul>
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
			</div>
			<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=5ab4b05e97fd14c3ed386604ee1a9399&action=lists&catid=%24catid&num=25&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 25;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>$catid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
	<div class="sch_sjzn_l02">
		<div class="sch_jzjl_l02">
		<div class="sch_jzjl_l02l_title p14 strong"><span><?php echo catpos($catid);?> 列表</span><div class="more01 p12"></div></div>
			<ul>
			<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			<li><a href="<?php echo $r['url'];?>" target="_blank"<?php echo title_style($r[style]);?>><?php echo $r['title'];?></a><tt><?php echo date('Y-m-d',$r[inputtime]);?></tt></li>
			<?php $n++;}unset($n); ?>
			</ul>
		</div>
		
		<div class="more"><?php echo $pages;?></div>
	</div><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
	
  </div>
  <div class="sch_sjzn_r">
  	<div class="sch_sjzn_r01">
		<div class="sch_sjzn_r01_title"><div class="title p14 strong">栏目精选</div><div class="more"><a href="#">更多>></a></div></div>
		<hr class="hr01" />
		<a href="#"><img src="<?php echo CSS_PATH;?>images/zindex_98.gif" /></a>
		<h2><a href="#">2010家居最流行的趋势2010家居最流行的趋势</a></h2>
		<span>2010家居最流行的趋势2010家居最流行的趋势2010家居最流行的趋势2010家居最流行的趋势</span>
		<hr class="hr02" />
		<ul>
			<li><a href="#">全攻略家庭装修全攻略家庭装修全攻略家庭装修全攻略家庭装修全攻略家庭装修全攻略家庭装修全攻略家庭装修全攻略家庭装修全攻略</a></li>
			
			
		</ul>
	</div>
	<div class="sch_sjzn_r02">
		<div class="sch_sjzn_r01_title"><div class="title p14 strong">图库推荐</div><div class="more"><a href="#">更多>></a></div></div>
		<hr class="hr01" />
		<ul>
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=c6bcacfd3aa2bb80f10d2fb88611c923&action=lists&catid=18&num=4&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 4;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'18','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>'18','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
		<ul class="photo-list picbig">
			<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			<li><a href="<?php echo $r['url'];?>"><img src="<?php echo thumb($r[thumb],120,90);?>" /></a><span><a href="<?php echo $r['url'];?>"><?php echo str_cut($r[title],28);?></a></span></li>
			<?php $n++;}unset($n); ?>	
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		</ul>
	</div>
	<div class="sch_sjzn_r03">
		<div class="sch_sjzn_r01_title"><div class="title p14 strong">打折公告</div><div class="more"><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=15">更多>></a></div></div>
		<hr class="hr01" />
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=0eca8df208c1083b1a5658a6a959c6cf&action=hits&catid=15&num=10&order=views+DESC&cache=3600\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$tag_cache_name = md5(implode('&',array('catid'=>'15','order'=>'views DESC',)).'0eca8df208c1083b1a5658a6a959c6cf');if(!$data = tpl_cache($tag_cache_name,3600)){$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'hits')) {$data = $content_tag->hits(array('catid'=>'15','order'=>'views DESC','limit'=>'10',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>
		<ul>
			<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			<li><a href="<?php echo $r['url'];?>" target="_blank"><?php echo $r['title'];?></a></li>
			<?php $n++;}unset($n); ?>
		</ul>
		 <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
	</div>
	
  </div>

</div>
<!-- 内容end-->
<!--友情链接begin-->
<div class="m06">
  <div class="m06_title">
  <h1><a href="javascript:void(0);">友情链接</a></h1>
  </div>
  <ul>
   <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"link\" data=\"op=link&tag_md5=99c32cd273c57223c20074bf5196e97a&action=type_list&siteid=%24siteid&order=listorder+DESC&num=10&return=dat\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$link_tag = pc_base::load_app_class("link_tag", "link");if (method_exists($link_tag, 'type_list')) {$dat = $link_tag->type_list(array('siteid'=>$siteid,'order'=>'listorder DESC','limit'=>'10',));}?>
		<?php $n=1;if(is_array($dat)) foreach($dat AS $v) { ?>
              <?php if($type==0) { ?>
            <li>  <a href="<?php echo $v['url'];?>" target="_blank"><?php echo $v['name'];?></a>  </li>
              <?php } else { ?>
             <li> <a href="<?php echo $v['url'];?>" target="_blank"><img src="<?php echo $v['logo'];?>" width="88" height="31" style="border: 1px solid #FFBE7A;"></a> </li>
              <?php } ?>
		<?php $n++;}unset($n); ?>
	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
  </ul>
</div>
<!-- 友情链接end-->
<!-- 内容end-->

<?php include template("content","footer"); ?>